import request from '@/utils/request'


// 分页类型
export function queryPlanOne() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/planOne`,
    method: 'get',
  })
}
  export function queryPlanTwo() {
    return request({
      // baseURL: '',
      url: `http://192.168.1.22:20088/queryAllReport/planTwo`,
      method: 'get',
    })
}

export function queryPlanThree() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/planThree`,
    method: 'get',
  })
}

export function queryViolationDay() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/ViolationDay`,
    method: 'get',
  })
}

export function queryViolationWeek() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/Violationweek`,
    method: 'get',
  })
}

export function queryViolationMonth() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/Violationmonth`,
    method: 'get',
  })
}

export function queryMachineErrnDay() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/MachineErrDay`,
    method: 'get',
  })
}
export function queryMachineErrnWeek() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/MachineErrWeek`,
    method: 'get',
  })
}
export function queryMachineErrnMonth() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/MachineErrMonth`,
    method: 'get',
  })
}
export function queryMachineErrnType() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/MachineErrType`,
    method: 'get',
  })
}

export function workmanshipErrDay() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/workmanshipErrDay`,
    method: 'get',
  })
}
export function workmanshipErrWeek() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/workmanshipErrWeek`,
    method: 'get',
  })
}
export function workmanshipErrMonth() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/workmanshipErrMonth`,
    method: 'get',
  })
}

export function ShopCapacitBalance() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/workShopCapacitBalance`,
    // url: `http://192.168.1.22:20088/queryAllReport/workShopCapacitBalance`,
    method: 'get',
  })
}

export function materialCapacitBalance() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/materialCapacitBalance`,
    method: 'get',
  })
}

export function WorkshopPerformance() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/WorkshopPerformance`,
    method: 'get',
  })
}

export function getConfig() {
  return request({
    // baseURL: '',
    // url: `http://192.168.1.22:20088/queryAllReport/getWebConfig`,
    url: `http://192.168.1.22:20088/queryAllReport/getWebShopAssessment`,
    method: 'get',
  })
}

export function updateConfig(data) {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/updateConfig`,
    method: 'post',
    data
  })
}

export function getEchartsForVio() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/ViolationEcharts`,
    method: 'get',
  })
}

export function getShopWorkAssessment() {
  return request({
    // baseURL: '',
    url: `http://192.168.1.22:20088/queryAllReport/getShopAssessment`,
    method: 'get',
  })
}
